package com.yunhe.option.repository.base;

import com.yunhe.option.domain.base.AcceptanceSituation;
import org.springframework.data.neo4j.repository.Neo4jRepository;

public interface AcceptanceSituationRepository extends Neo4jRepository<AcceptanceSituation, Long> {

    /**
     * 根据编号获得验收情况类型对象
     * @param name
     */
    AcceptanceSituation findByName(String name);

    /**
     * 根据代码获得验收情况类型对象
     * @param code
     */
    AcceptanceSituation findByCode(Long code);
}
